import 'package:distribution_mall_flutter/constant/cf_constant.dart';
import 'package:distribution_mall_flutter/generated/l10n.dart';
import 'package:flutter/material.dart';

class CartTitle extends StatelessWidget {
  const CartTitle({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.fromLTRB(EdgeConstant.edge20,
          MediaQuery.of(context).padding.top + 16, EdgeConstant.edge20, 0),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Text(
            S.of(context).cart_title,
            style: const TextStyle(
              color: Color.fromRGBO(41, 41, 52, 1),
              fontSize: FontConstant.f24,
              fontWeight: FontWeight.w600,
            ),
          ),
          Text(
            S.of(context).delete,
            style: const TextStyle(
              color: Colors.black,
              fontSize: FontConstant.f14,
            ),
          )
        ],
      ),
    );
  }
}
